package com.hspedu.homework.homework05;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/24
 * @time 19:18
 */
public class Teacher extends Employee {

    //课酬  元/天
    private double classSal;
    private int classDay;

    public Teacher(double sal, double classSal, int classDay) {
        super(sal);
        this.classSal = classSal;
        this.classDay = classDay;
    }

    @Override
    public double getSal() {
        return super.getSal() + classDay * classSal;
    }
}
